Voice recognition system and construction method thereof

ABSTRACT

Disclosed are a voice recognition system and a construction method for the voice recognition system. By way of layering the system, a general semantic recognition operation for the system is separated from a specific semantic recognition operation for an application program; and by way of classifying the application programs and abstracting out a common performance function, the system can find the application program matching the voice content semantics very efficiently and a third-party program is easily added into the existing voice recognition system. The present invention maps the performance function to a regular expression with semantic variables, so that the system can recognize more semantic expression manners with optimization of the semantic recognition. Therefore, the system can show more humanized characteristics.

BACKGROUND

1. Technical Field

The present disclosure generally relates to the field of voice recognition technology, in particular to a distributed voice recognition system and a construction method.

2. Description of Related Art

Traditionally a voice recognition system provides voice recognition for input voice through a voice recognition module in a client or a cloud server, and the semantic recognition process is based on a pre established syntax analysis tree to identify the speech content and call a corresponding application program to complete the operation, such as SIRI, GOOGLE NOW.

The traditional voice recognition system described above intends to establish a general system that can fully understand people's intention. The execution of the identified operations generally occurs in a pre-established speech recognition system database or application. This approach can better control the scope of the operation of the semantic recognition and make the semantic recognition more close to people's understanding of speech. But there are a large number of third party applications on the system, this approach makes it impossible to perform operations against third party applications, even if these operations have been identified by the system. At the same time, the user is concerned about the different sites, because of the different data sources, the results from the same search requests are also different. In addition, in order to allow the third-party application to use the speech recognition function, a simple speech recognition module needs to be added or a cloud voice development library of the third-party needs to be applied, and then regular expressions and corresponding operations are uploaded to the semantic recognition library. In this way, the semantic recognition database of the third party cannot be found by other programs, and the operation can only occur in the third party application or database.

SUMMARY

The purpose of the invention is to provide a voice recognition system and its construction method that the traditional voice recognition system can be applied seamlessly to the existing applications execution of the user client, and make the semantic recognition with more personalized features that set the scope of the operation of the semantic recognition according to the user's preferences. In addition, the semantic recognition library of third-party applications can be found by other programs and receives operation requests from other applications.

In order to solve the above technical problems, in one embodiment, the present invention provides a voice recognition system including a voice recognition module, the voice recognition system further including:

a root node for storing a plurality of regular expressions with semantic variables, to find and open files or application programs that are stored in the system;

a plurality of class nodes, each for storing a plurality of regular expressions with semantic variables which are used to describe common behaviors of a series of application programs, and mapping the regular expressions to a public function set;

a plurality of application program nodes belonging to the class nodes and inheriting the public function set of the class nodes;

a plurality of application program internal nodes, each for storing a plurality of regular expressions used in the application program, and a corresponding function set; and

a registration centre for storing information of application programs which are installed on the system and establishing a multi fork tree structure of the voice recognition system.

Preferably, each application program node comprises a plurality of regular expressions with semantic variables that are not used in the class nodes and mapped to a specific function set.

The corresponding operations of the regular expressions of the root node are mainly used to find or open files and application programs or call unique application programs provided by the system (for example, telephony application program, messaging application program). Each class node is mainly used to locate the class to which the target application is located, in order to quickly find out the location of the application node that performs the operation that is semantically recognized. When the class nodes cannot recognize the semantic meaning of the voice content, the content will be given to all the application nodes for semantic recognition. For security, voice content from the root node will not be transmitted to the application program internal nodes.

The variables of each regular expression are semantic variables, which are mainly used to determine whether given variables are within a specified semantic scope or not. Among the semantic variables, the semantic scope can be derived from common sense, and can also be a name set of the application programs installed on the system. If the specified semantic scope is relatively small, it can be given by enumeration. The invention constructs the syntax analysis tree by the regular expressions to complete the semantic recognition of the input speech content, and each regular expression corresponds to a function call. After determining a grammatical structure that can be parsed correctly, a plurality of linguistic expressions for this grammatical structure will be added together as the semantic recognition database updates. Corresponding regular expressions of the new added linguistic expressions will be mapped to a same function, thus establishing a more humane semantic recognition database, also help to improve the accuracy of voice recognition.

In order to prevent the function name of the application program and the function name of the class node conflict, application specific functions will not be allowed to use the public function name of the class node.

In another embodiment, the regular expressions can have no semantic variables, which can be seen as values of the semantic variables of the regular expressions are null.

In another embodiment, the present invention provides a construction method, comprising:

step S01: the application programs submitting information to the registration centre;

step S02: the voice recognition system receiving a voice input by a user, and the voice recognition module converting voice content into text form;

step S03: the voice recognition system determining whether the voice content matches with the regular expressions with semantic variables of the root node or not, wherein if the voice content matches with the regular expressions with semantic variables of the root node, a corresponding function is called; and wherein if the voice content does not matches with the regular expressions with semantic variables of the root node, a next step is performed;

step S04: the class nodes receiving the voice content, wherein if the voice content does not match with the regular expressions with semantic variables of any class node, step S05 is performed; if the voice content matches with the regular expressions with semantic variables of one class node, step S07 is performed;

step S05: the voice content being delivered to all the application nodes, if the voice content matches with the regular expressions with semantic variables of one of application program nodes, step S07 is performed; if the voice content does not match with the regular expressions with semantic variables of any application program nodes, step S06 is performed;

step S06: the voice recognition system discarding the voice content or inputting the voice content into public search engine for a wide range of search;

step S07: the voice recognition system selecting a called application program and writing the function corresponding to the regular expression with semantic variables into a private directory of the selected application program installed on the system; and

step S08: the system starting the selected application program, wherein the voice recognition system determines whether the private directory of the selected application program has a function and corresponding variables or not before loading the selected application program, and wherein if the private directory of the selected application program has the function and corresponding variables, the selected application program loads the function and variables from the private directory and calls a corresponding function; and wherein if the private directory of the selected application program has no the function and variables, a default initial page is loaded.

In order to facilitate access to services that are bound to an account, the user can enter an account name and password of the application program in advance. At the same time, a specific return interface can be set up for each function call inside the application program, in order to return the results of the call to the user.

Preferably, the submitted information in step S01 comprises name and identifier of the application program, the class information of the application program, and a plurality of specific regular expressions with semantic variables and the corresponding functions of the application program nodes and some information from the application program internal nodes.

The identifier of the application program points to a detail address of a system directory where a startup program of the application program is located. The voice recognition system starts the applicant program by opening the system directory that the identifier of the application program points to.

Preferably, in step S07, a priority of each application program node that belongs to a class node is set based on the user's settings, wherein if the regular expressions matching with the voice content does not designate that one of the application program nodes call the function, a higher priority application program node is selected to call the function.

In light of the user's settings, in the case the regular expressions of a class node matching the voice content does not designate that one of the application program nodes executes a function call, all application program nodes of the class node calls the function corresponding to the regular expressions and the results are come to a page. In the case the application program returns the result of calling the function to the system, and the system comes the results to a page and does not returns the results to the page pre-set by the application program.

Preferably, in step S07, only the selected application program and the system can write data into the private directory of the selected application program installed on the system, while only the selected application program can read the function and variables that are stored in the private directory.

At the same time the account name and password input by the user are stored in the private directory. A location of the private directory is marked by the identifier of the application program. A name of the private directory is automatically generated by the system in light of the name of the application program because the private directory and a start program are stored in the same directory of the system. The data written into the private directory can be saved in XML format to facilitate to be accessed by the application program.

Preferably, in step S08, after loading the application program, further comprising the following steps:

step S0801: the voice recognition system receiving voice input by the user, and the voice recognition module converting voice content into text form;

step S0802: the voice recognition system determining whether the voice content matches with the regular expressions of the application program internal nodes, wherein if the voice content matches with the regular expressions of the application program internal nodes, a corresponding function is called, and wherein if the voice content does not match with the regular expressions of the application program internal nodes, a next step is performed;

step S0803: the voice content being transmitted to a selected application program node, wherein if the voice content matches with the regular expressions of the selected application program node, a corresponding function is called, and wherein if the voice content does not match with the regular expressions of the selected application program node, a next step is performed;

step S0804: the voice content being transmitted to a class node of the selected application program node, wherein if the voice content matches with the regular expressions of the class node of the selected application program node, step S0810 is performed, and wherein if the voice content does not matches with the regular expressions of the class node of the selected application program node, a next step is performed;

step S0805: the voice content being transmitted to all brother nodes of the selected application program node, wherein if the voice content matches with the regular expressions of one of the brother node of the selected application program node, step S0810 is performed, and wherein if the voice content does not matches with the regular expressions of any brother nodes of the selected application program node, a next step is performed;

step S0806: the voice content being transmitted to the root node, wherein if the voice content matches with the regular expressions of the root node, a corresponding function is called, and wherein if the voice content does not matches with the regular expressions of the root node, a next step is performed;

step S0807: the voice content being transmitted to the class nodes, wherein if the voice content matches with the regular expressions of the class nodes, step S0808 is performed, and wherein if the voice content does not matches with the regular expressions of the class nodes, step S0810 is performed;

step S0808: the voice content being transmitted to the application program nodes and recognized by the application program nodes, wherein if the voice content matches with the regular expressions of the application program nodes, step S0810 is performed, and wherein if the voice content does not matches with the regular expressions of the application program nodes, step S0809 is performed;

step S0809: the system discarding the voice content or inputting the voice content into public search engine for a wide range of search;

step 0810: the voice recognition system selecting a called application program and writing a function corresponding to the regular expressions with semantic variables into a private directory of the selected application program installed on the system; and

step S0811: the system starting the selected application program, wherein the system determine whether the private directory of the selected application program has a function and corresponding variables or not before loading the selected application program, and wherein if the private directory of the selected application program has a function and corresponding variables, the selected application program loads the function and variables from the private directory and calls a corresponding function; and wherein if the private directory of the selected application program has no the function and variables, a default initial page is loaded.

The beneficial effects of the present invention are:

The invention can complete the construction of a semantic recognition module of the voice recognition system by using information submitted by application programs which need to be applied to the registration centre. The voice recognition system can quickly locate the required application programs by the semantic recognition module based on multi fork tree structure, and the third party application programs can be easily added into the existing voice recognition system. Through regular expressions with semantic variables to complete the semantic recognition of input voice content, the voice recognition system can recognize more humane voice content by mapping regular expressions corresponding to more linguistic expressions to a same function. The application program does not occupy the thread when the voice recognition system recognizes the semantic by writing functions and variables of the application program into a private directory, resulting in improving the performance of the system, while preventing input voice content of the user from being tapped by other threads. In addition, the voice recognition system provides a personalized service for users by setting the priority of the application program nodes.

BRIEF DESCRIPTION OF THE DRAWINGS

The detail description of the present invention is as following by combination of drawings and detailed description.

FIG. 1 is schematic diagram of a system of a registration centre of the present invention.

FIG. 2 is a flowchart of a method for processing voice input.

FIG. 3 is a diagram of a shopping application program which executes enquiry function of commodity price.

DETAILED DESCRIPTION

Referring to FIG. 2, when a third-party application program needs to be added to the voice recognition system, firstly it needs to submit the following information to a registration center of the voice recognition system (S01): A name and an identifier of the application program, the class information of the application program, and a plurality of specific regular expressions with semantic variables and the corresponding functions of the application program nodes and some information from the application program internal nodes. The identifier of the application program points to a detail address of a system directory where a startup program of the application program is located. The voice recognition system starts the applicant program by opening the system directory that the identifier of the application program points to. The registration centre is a multi fork tree including a root node, a plurality of class nodes, a plurality of application program nodes, and a plurality of application program internal nodes (referring to FIG. 1). The root node stores a plurality of regular expressions with semantic variables, to find and open files or application programs that are stored in the voice recognition system. Each class node stores a plurality of regular expressions with semantic variables which are used to describe common behaviors of a series of applications programs, and maps the regular expressions to a public function set. Each application program node belongs to one of the class nodes and inherits a public function set of a class node. Each application program internal node stores a plurality of regular expressions used inside the application program, and a corresponding function set. Only after entering a application program, the system can use the regular expressions of the application program internal node to match voice content.

The corresponding operations of the regular expressions of the root node are mainly used to find or open files and application programs or call unique application programs provided by the system (for example, telephony application program, messaging application program). Each class node is mainly used to locate the class to which the target application is located, in order to quickly find out the location of the application node that performs the operation that is semantically recognized. When the class nodes cannot recognize the semantic meaning of the voice content, the content will be given to all the application nodes for semantic recognition. For security, the voice content from the root node will not be transmitted to the application program internal nodes.

According to information submitted by the application program to the registration center, a new application program is added to an application program node which is a sub node of a class node. Simultaneously, a plurality of specific regular expressions with semantic variables and a corresponding function set of the application program node are also written into the corresponding application program node. The application program internal node is a sub node of the application program node, and it stores a plurality of specific regular expressions with semantic variables and a corresponding function set applied inside the application program.

The variables of each regular expression are semantic variables, which are mainly used to determine whether given variables are within a specified semantic scope or not, wherein the specified semantic scope can be derived from common knowledge, and can also be a name set of the application programs installed on the system. If the specified semantic scope is relatively small, it can be given by enumeration. In a commercial application program, the system can get examples of the semantic variable by machine learning, for example, a plurality of qualifiers are used to describe commodity names. In a chat application program, a local application program submits names in a contact list as a semantic variable to the registration center after the user is connected to a network. The invention constructs the syntax analysis tree by the regular expressions to complete the semantic recognition of the input speech content, and each regular expression corresponds to a function call. After determining a grammatical structure that can be parsed correctly, a plurality of presentations for this grammatical structure will be added together as the semantic recognition database updates. Corresponding regular expressions of the new added linguistic expressions will be mapped to a same function, thus establishing a more humane semantic recognition database, also help to improve the accuracy of voice recognition.

In order to prevent the function name of the application program and the function name of the class node conflict, application specific functions will not be allowed to use the name of the public function name of the class node.

When the voice recognition system receives voice input by the user, the input voice will be transformed into text format by a voice recognition module (S02). The voice recognition system determines whether the input voice content matches with the regular expressions with semantic variables of the root node or not (S04), if the input voice content matches with the regular expressions with semantic variables of the root node, a corresponding function is called. If the input voice content does not matches with the regular expressions with semantic variables of the root node, the input voice content is submitted to the class nodes (S04). If the input voice content does not match with the regular expressions with semantic variables of the class nodes, the input voice content is submitted to all application program nodes to analyze (S05). If the input voice content matches with the regular expressions with semantic variables of one of the application program nodes, the voice recognition system writes a function corresponding to the matching regular expression into a private directory of the application program retained by the system (S07), and starts the matching application program. If the voice content exactly matches with the regular expressions of the class nodes, and the matching regular expression does not specify one of the application program nodes to call a function, the system selects a random application program node and writes a function name and variables corresponding to the matching regular expression into the private directory of the selected application program (S07). Preferably, the user can set the priority of the application program node that is a sub node of the class node. In the case that the application program nodes have the same probability of being selected by the class nodes to call the function corresponding to the regular expressions, a higher priority application program will be called by the voice recognition system. Finally, if the regular expressions with semantic variables of all nodes do not match with the input voice content, the input voice content is discarded or sent to a public search engine for a wider range of search (S06).

The system starts the selected application program, and will determine whether the private directory of the selected application program has a function with corresponding variables or not before loading the application program, wherein if the private directory of the selected application program has a function with corresponding variables, the application program will get the function with variables from the private directory, and calls a corresponding function. If the private directory of the selected application program has not any function information, the application program loads a default initial page (S08). In order to facilitate access to services that are bound to an account, the user can enter an account name and password of the application program in advance and save the account name and password in the private directory of the application program set by the voice recognition system. At the same time, a specific return interface can be set up for each function call inside the application program, in order to return the results of the call to the user, and guides the user to the application program internal node.

After starting the application program, firstly the voice content input by the user is converted into text format, after that the voice recognition system determines whether the voice content matches with the regular expressions of the application program internal node or not. If the voice content matches with the regular expressions of the application program internal node, a corresponding function is called. If the voice content does not match with the regular expressions of the application program internal node, the voice content is submitted to the selected application program node. The voice recognition system determines whether the voice content matches with the regular expressions of the application program node or not. If the voice content matches with the regular expressions of the application program node, a corresponding function is called. If the voice content does not match with the regular expressions of the application program node, the voice content is submitted to a class node of the selected application program node. If the voice content matches with the regular expressions of the class node, the function with variables are written into the private directory of the selected application program, and the selected application program are started. If the voice content does not match with the regular expressions of the class node, the voice content is transmitted to brother nodes of the application program node. If the voice content matches with the regular expressions of the brother nodes of the application program nodes, the function with variables are written into the private directory of the brother node of the application program node. If the voice content does not match with the regular expressions of any brother nodes of the application program nodes, the voice content is transmitted to the root node. If the voice content matches with the regular expressions of the root node, the system switches to a main interface and calls a corresponding function. The following steps are similar to the previous steps, but the voice content will not be passed to the class node of the application program internal node to analysis. As a recipe, if the voice content can be recognized by the class node of the application program internal node, and the recognized variables are not be pointed to an application program node, the current application program is acted as the default scope of the function.

Referring to FIG. 3, a shopping class application program is further described. When the voice content matches with the regular expressions of the shopping class application program, a corresponding application program is called in light of the variables stored in X and Y, and a function name and variables are written into a private directory of the corresponding application program, wherein X represents an application program, and Y represents goods. The startup program of the application program is found in light of an identifier submitted by the application program X. The application program reads the function with variables in the private directory, and calls a corresponding function. Of course, some regular expressions include a plurality of variables, the method of the present invention can be implemented as long as the semantic scope of each variable is defined and the regular expressions with variables are mapped to the corresponding functions.

The technology solution described above is applied to mobile devices, such as IOS and Android, but also suitable for web search and intelligent home voice management. When the technology solution is used to search the web, a module is built for the semantics recognition of each web page. After an input voice content matches with a regular expression, an operation of a web page is called. If more than one web site matches with the input content, the results from the matching function of these web sites are aggregated to a web page. The intelligent home voice management can make devices in a dormant period when they are not working, the devices are started when the relevant device can perform the operation asked by the user. The present invention can make a new equipment and a new website to be easily added into the existing voice recognition system.

If the voice recognition and resolution ability of the device is limited, the registration center will be put into the cloud server. The identifier of the application program will represent the URL address of the application program. The operating system of the present invention can be a local operating system, and can also be a cloud operating system where these application programs are installed in different physical locations.

By way of layering the system, a general semantic recognition operation for the system is separated from a specific semantic recognition for the application programs, and by way of classifying the application programs and abstracting out some common functions, the system can find the application program matching the voice content semantics very efficiently and a third-party application is easily added into the existing voice recognition system. The present invention maps many common performance functions to a regular expression with semantic variables, so that the system can recognize more personalized expressions with the optimization of the semantic recognition. Therefore, the system can show more humanized characteristics.

The present invention provides a voice recognition system and its construction method that can add the recognized function into the private directory of a application program built by the voice recognition system, so that the application program does not occupy the thread when the voice recognition system recognizes the voice content. It also can prevent the input voice content from being tapped by other threads.

The embodiments described above are merely preferred ones of the present disclosure but are not limitations to the protection scope of the present disclosure, and any variations or substitutions easily devised by those skilled in the art without departing from the spirit of the present disclosure fall within the scope of the protection. Therefore, the protection scope of the present disclosure shall be subject to that specified by the appended claims. 

1-2. (canceled)
 3. A construction method base on a voice recognition system, the voice recognition system comprising a voice recognition module, a root node for storing a plurality of regular expressions with semantic variables to find and open files or application programs that are stored in the voice recognition system, a plurality of class nodes each for storing a plurality of regular expressions with semantic variables which are used to describe common behaviors of a series of application programs and mapping the regular expressions to a public function set, a plurality of application program nodes belonging to the class nodes and inheriting the public function set of the class nodes, a plurality of application program internal nodes each for storing a plurality of regular expressions used in the application program, and a corresponding function set, and a registration centre for storing information of the application programs installed on the voice recognition system and establishing a multi fork tree structure of the voice recognition system, the method comprising: step S01: the application programs submitting information to the registration centre; step S02: the voice recognition system receiving a voice input by a user, and the voice recognition module converting voice content into text form; Step S03: the voice recognition system determining whether the voice content matches with the regular expressions with semantic variables of the root node or not, wherein if the voice content matches with the regular expressions with semantic variables of the root node, a corresponding function is called; and wherein if the voice content does not matches with the regular expressions with semantic variables of the root node, a next step is performed; step S04: the class nodes receiving the voice content, wherein if the voice content does not match with the regular expressions with semantic variables of any class node, step S05 is performed; and wherein if the voice content matches with the regular expressions with semantic variables of one class node, step S07 is performed; step S05: the voice content being delivered to all application nodes wherein if the voice content matches with the regular expressions with semantic variables of one of application program nodes, step S07 is performed; and wherein if the voice content does not match with the regular expressions with semantic variables of any application program nodes, step S06 is performed; step S06: the voice recognition system discarding the voice content; step S07: the voice recognition system selecting a called application program and writing the function corresponding to the regular expressions with semantic variables into a private directory of the selected application program installed on the voice recognition system; and step S08: the system starting the selected application program, wherein the voice recognition system determine whether the private directory of the selected application program has a function and corresponding variables or not before loading the selected application program, and wherein if the private directory of the selected application program has the function and corresponding variables, the selected application program loads the function and variables from the private directory and calls a corresponding function; and wherein if the private directory of the selected application program has no the function and variables, a default initial page is loaded.
 4. The construction method of claim 3, wherein the submitted information in step S01 comprises name and identifier of the application program, class information of the application program, and a plurality of specific regular expressions with semantic variables and corresponding functions of the application program nodes and some information from the application program internal nodes.
 5. The construction method of claim 3, wherein in step S07, a priority of each application program node that belongs to one of the class nodes is set based on the user's settings, wherein if the regular expressions matching with the voice content does not designate that one of the application program nodes call the function, a higher priority application program node is selected to call the function.
 6. The construction method of claim 3, wherein in step S07, only the selected application program and the voice recognition system can write data into the private directory of the selected application program installed on the voice recognition system, while only the selected application program can read the function and variables that are stored in the private directory.
 7. The construction method of claim 3, wherein in step S08, after loading the application program, further comprising the flowing steps, step S0801: the voice recognition system receiving voice input by the user, and the voice recognition module converting voice content into text form; step S0802: the voice recognition system determining whether the voice content matches with the regular expressions of the application program internal nodes, wherein if the voice content matches with the regular expressions of the application program internal nodes, a corresponding function is called, and wherein if the voice content does not match with the regular expressions of the application program internal nodes, a next step is performed; step S0803: the voice content being transmitted to a selected application program node, wherein if the voice content matches with the regular expressions of the selected application program node, a corresponding function is called, and wherein if the voice content does not match with the regular expressions of the selected application program node, a next step is performed; step S0804: the voice content being transmitted to a class node of the selected application program node, wherein if the voice content matches with the regular expressions of the class node of the selected application program node, step S0810 is performed, and wherein if the voice content does not matches with the regular expressions of the class node of the selected application program node, a next step is performed; step S0805: the voice content being transmitted to all brother nodes of the selected application program node, wherein if the voice content matches with the regular expressions of one of the brother nodes of the selected application program node, step S0810 is performed, and wherein if the voice content does not matches with the regular expressions of any brother nodes of the selected application program node, a next step is performed; step S0806: the voice content being transmitted to the root node, wherein if the voice content matches with the regular expressions of the root node, a corresponding function is called, and wherein if the voice content does not matches with the regular expressions of the root node, a next step is performed; step S0807: the voice content being transmitted to the class nodes, wherein if the voice content matches with the regular expressions of the class nodes, step S0808 is performed, and wherein if the voice content does not matches with the regular expressions of the class nodes, step S0810 is performed; step S0808: the voice content being transmitted to the application program nodes and recognized by the application program nodes, wherein if the voice content matches with the regular expressions of the application program nodes, step S0810 is performed, and wherein if the voice content does not matches with the regular expressions of the application program nodes, step S0809 is performed; step S0809: the voice recognition system discarding the voice content or inputting the voice content into public search engine for a wide range of search; step 0810: the voice recognition system selecting a called application program and writing a function corresponding to the regular expressions with semantic variables into a private directory of the selected application program installed on the system; and step S0811: the system starting the selected application program, wherein the system determine whether the private directory of the selected application program has a function and corresponding variables or not before loading the selected application program, and wherein if the private directory of the selected application program has a function and corresponding variables, the selected application program loads the function and variables from the private directory and calls a corresponding function; and wherein if the private directory of the selected application program has no the function and variables, a default initial page is loaded. 